@echo off
setlocal enabledelayedexpansion

set targetDir=.\
set extension=.1415926535897932384262

for /r "%targetDir%" %%f in (*%extension%) do (
    set "oldName=%%~nf"
    ren "%%f" "!oldName!"
    echo Renamed: "%%f" to "!oldName!"
)

echo All %extension% extensions have been removed.
pause
